<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../before/css/common.css" rel="stylesheet" tyle="text/css" />
    <link href="../before/css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/before/js/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="/after/js/layer/layer.js"></script>
    <title>用户登录</title>
</head>

<body>
<!--顶部样式-->
<div class="common_top">
    <div class="Narrow">
        <div class=" left logo"><a href="/stageregist/toIndex.do"><img src="../before/images/logo1.png" /></a></div>
        <!--可修改图层-->
        <div class=" left festival"><a href="#"><img src="../before/images/logo_gou.png" /></a></div>
        <!--电话图层-->
        <div class="phone">全国服务热线：<em>400-345-5633</em></div>
    </div>
</div>
<div class="login Narrow">
    <div class="login_advertising"><img src="../before/images/login_img_03.png" /></div>
    <div class="login_frame">
        <div class="login-form right">
            <div class="login-name"><h1 class="name">用户登录</h1><span class="login_link"><a href="/stageregist/toRegist.do"><b></b>用户注册</a></span></div>
            <!--提示信息-->
            <div class="Prompt">账号密码不能为空！ </div>
            <div class="form clearfix">
                <div class="item item-fore1"><label for="loginname" class="login-label name-label"></label><input name="name" type="text"  class="text" placeholder="请输入用户"/>
                </div>
                <div class="item item-fore2"><label for="nloginpwd" class="login-label pwd-label" ></label><input name="pass" type="password"  class="text" placeholder="用户密码"/>
                </div>
                <div class="Forgetpass"><a href="#">忘记密码？</a></div>
            </div>
            <div class="login-btn">
                <a href="javascript:;" class="btn_login">登&nbsp;&nbsp;&nbsp;&nbsp;录</a>
            </div>
        </div>
    </div>
</div>
<!--底部样式-->
<div class="bottom_footer">
    <p><a href="#">关于我们</a> | <a href="#">联系我们</a> | <a href="#">商家入驻</a> | <a href="#">法律申明</a> | <a href="#">友情链接</a>  </p>
    <p>Copyright©2018 郑科院叮叮网络科技有限公司.All Rights Reserved. </p>
    <p>豫ICP备09150084号</p>
</div>
</body>
</html>
<script>

    $(function(){
      function CustomLogin(){
          var name=$(":input[name='name']").val();
          var pass=$(":input[name='pass']").val();
          if(name==""||pass==""){
              return;
          }else{
              $.ajax({type:"post",
                  url:"/stageregist/CustomLogin.do",
                  data:{type:"post",
                      "name":name,"pass":pass},
                  success:function(result){
                      if(result=="false"){
                          alert("账号密码错误");
                      }else{
                          window.location.href='/stageregist/toIndex.do';
                      }
                  }
              })
          }
      }

      $(".btn_login").click(function(){
          CustomLogin();
      })
    })
</script>
